home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 11587 / 11587.xpi / chrome / aviary.jar / content / browserOverlay.xul < prev    next >
Extensible Markup Language  |  2009-10-08  |  13KB  |  251 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (c) 2007-2009 Pearl Crescent, LLC.  All Rights Reserved.
  3.   -->
  4. <!-- vim: set sw=2 sts=2 ts=8 et syntax=xml: -->
  5.  
  6. <!DOCTYPE overlay SYSTEM "chrome://aviary/locale/extension.dtd">
  7. <?xml-stylesheet href="chrome://aviary/skin/browserOverlay.css"
  8.                  type="text/css"?>
  9.  
  10. <overlay id="aviary-overlay"
  11.          xmlns:html="http://www.w3.org/1999/xhtml"
  12.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  13.  
  14.   <script type="application/x-javascript"
  15.           src="chrome://browser/content/browser.js"/>
  16.   <script type="application/x-javascript"
  17.           src="chrome://aviary/content/browserOverlay.js"/>
  18.   <script type="application/x-javascript"
  19.           src="chrome://aviary/content/upload.js"/>
  20.   <script type="application/x-javascript"
  21.           src="chrome://aviary/content/progress.js"/>
  22.   <script type="application/x-javascript"
  23.           src="chrome://aviary/content/pearlutil.js"/>
  24.   <script type="application/x-javascript"
  25.           src="chrome://aviary/content/util.js"/>
  26.   <script type="application/x-javascript"
  27.           src="chrome://aviary/content/pearlutil-grab.js"/>
  28.   <script type="application/x-javascript"
  29.           src="chrome://aviary/content/pearlutil-clipboard.js"/>
  30.   <script type="application/x-javascript"
  31.           src="chrome://aviary/content/pearlutil-request.js"/>
  32.   
  33.   <menubar id="main-menubar">
  34.     <menu id="Aviary-menu" label="&aviaryMenu.label;"
  35.           accesskey="&aviaryMenu.accesskey;" insertafter="tools-menu">
  36.       <menupopup id="menu_AviaryPopup" onpopupshowing="">
  37.         <menuitem label="&aviaryCaptureImageOfPageRegion.label;"
  38.                   tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
  39.                   oncommand="gAviaryMain.CaptureRegion();" />
  40.         <menuitem label="&aviaryCaptureImageOfPageVisible.label;"
  41.                   tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
  42.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt);" />
  43.         <menuitem label="&aviaryCaptureImageOfPageFull.label;"
  44.                   tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
  45.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt);" />
  46.         <menuseparator />
  47.         <menuitem id="aviary-falcon" label="&aviaryFalcon.label;"
  48.           class="menuitem-iconic" accesskey="&aviaryFalcon.accesskey;"
  49.           aviary-tid="20"
  50.           oncommand="gAviaryMain.LaunchApp(this);" />
  51.         <menuitem id="aviary-phoenix" label="&aviaryPhoenix.label;"
  52.           class="menuitem-iconic" accesskey="&aviaryPhoenix.accesskey;"
  53.           aviary-tid="1"
  54.           oncommand="gAviaryMain.LaunchApp(this);" />
  55.         <menuitem id="aviary-toucan" label="&aviaryToucan.label;"
  56.           class="menuitem-iconic" accesskey="&aviaryToucan.accesskey;"
  57.           aviary-tid="2"
  58.           oncommand="gAviaryMain.LaunchApp(this);" />
  59.         <menuitem id="aviary-peacock" label="&aviaryPeacock.label;"
  60.           class="menuitem-iconic" accesskey="&aviaryPeacock.accesskey;"
  61.           aviary-tid="3"
  62.           oncommand="gAviaryMain.LaunchApp(this);" />
  63.         <menuitem id="aviary-raven" label="&aviaryRaven.label;"
  64.           class="menuitem-iconic" accesskey="&aviaryRaven.accesskey;"
  65.           aviary-tid="4"
  66.           oncommand="gAviaryMain.LaunchApp(this);" />
  67.         <menuitem id="aviary-hummingbird" label="&aviaryHummingbird.label;"
  68.           class="menuitem-iconic"
  69.           aviary-tid="5"
  70.           oncommand="gAviaryMain.LaunchApp(this);" />
  71.         <menuitem id="aviary-myna" label="&aviaryMyna.label;"
  72.           class="menuitem-iconic" accesskey="&aviaryMyna.accesskey;"
  73.           aviary-tid="6"
  74.           oncommand="gAviaryMain.LaunchApp(this);" />
  75.         <menuitem id="aviary-woodpecker" label="&aviaryWoodpecker.label;"
  76.           class="menuitem-iconic"
  77.           aviary-tid="14"
  78.           oncommand="gAviaryMain.LaunchApp(this);" />
  79.         <menuseparator />
  80.         <menuitem label="&aviaryHome.label;" accesskey="&aviaryHome.accesskey;"
  81.           url="http://aviary.com/home/"
  82.           oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
  83.         <menuitem id="aviary-dashboard" label="&aviaryDashboard.label;"
  84.           accesskey="&aviaryDashboard.accesskey;"
  85.           url="http://aviary.com/dashboard/"
  86.           oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
  87.         <menuitem id="aviary-settings" label="&aviarySettings.label;"
  88.           url="http://aviary.com/editprofile/"
  89.           oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
  90.         <menuitem id="aviary-login" label="&aviaryLogin.label;"
  91.           accesskey="&aviaryLogin.accesskey;"
  92.           aviaryLoginLabel="&aviaryLogin.label;"
  93.           aviaryLogoutLabel="&aviaryLogout.label;"
  94.           oncommand="gAviaryMain.LoginOrOut();" />
  95.         <menuseparator />
  96.         <menuitem id="aviary-ext-options" label="&aviaryTalonOptions.label;"
  97.           class="menuitem-iconic"
  98.           oncommand="gAviaryMain.OpenTalonOptions();" />
  99.         <menuseparator />
  100.         <menuitem label="&aviaryAbout.label;"
  101.           url="http://aviary.com/about"
  102.           oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
  103.         <menuitem label="&aviaryAboutExtension.label;"
  104.           url="http://aviary.com/tools/talon"
  105.           oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
  106.  
  107. <!-- TODO: add menu items for other tools? -->
  108.       </menupopup>
  109.     </menu>
  110.   </menubar>
  111.  
  112.   <toolbarpalette id="BrowserToolbarPalette">
  113.     <toolbarbutton id="aviary-captureimageofpage" type="menu-button"
  114.                    label="&aviaryCaptureImageOfPage.label;"
  115.                    tooltiptext="&aviaryCaptureImageOfPage.tooltip;"
  116.                    class="toolbarbutton-1 chromeclass-toolbar-additional"
  117.                    oncommand="gAviaryMain.CaptureDefault();" >
  118.       <menupopup>
  119.         <menuitem label="&aviaryCaptureImageOfPageRegion.label;"
  120.                   tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
  121.                   oncommand="gAviaryMain.CaptureRegion(); event.stopPropagation();" />
  122.         <menuitem label="&aviaryCaptureImageOfPageVisible.label;"
  123.                   tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
  124.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt); event.stopPropagation();" />
  125.         <menuitem label="&aviaryCaptureImageOfPageFull.label;"
  126.                   tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
  127.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt); event.stopPropagation();" />
  128.       </menupopup>
  129.     </toolbarbutton>
  130.   </toolbarpalette>
  131.  
  132.   <statusbar id="status-bar">
  133.     <statusbarpanel id="aviary-statusbar-capture" hidden="true"
  134.                     tooltiptext="&aviaryCaptureImageOfPage.tooltip;"
  135.                     oncommand="gAviaryMain.CaptureDefault();" >
  136.       <button type="menu-button">
  137.         <menupopup>
  138.           <menuitem label="&aviaryCaptureImageOfPageRegion.label;"
  139.                     tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
  140.                     oncommand="gAviaryMain.CaptureRegion(); event.stopPropagation();" />
  141.           <menuitem label="&aviaryCaptureImageOfPageVisible.label;"
  142.                     tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
  143.                     oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt); event.stopPropagation();" />
  144.           <menuitem label="&aviaryCaptureImageOfPageFull.label;"
  145.                     tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
  146.                     oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt); event.stopPropagation();" />
  147.         </menupopup>
  148.       </button>
  149.     </statusbarpanel>
  150.  </statusbar>
  151.  
  152.   <popup id="contentAreaContextMenu">
  153.     <menu id="aviary-captureimageofpageCM"
  154.               class="menu-iconic"
  155.               label="&aviaryCaptureImageOfPageCM.label;"
  156.               insertafter="context-savepage">
  157.       <menupopup>
  158.         <menuitem label="&aviaryCaptureImageOfPageRegion.label;"
  159.                   tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
  160.                   oncommand="gAviaryMain.CaptureRegion();" />
  161.         <menuitem label="&aviaryCaptureImageOfPageVisible.label;"
  162.                   tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
  163.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt);" />
  164.         <menuitem label="&aviaryCaptureImageOfPageFull.label;"
  165.                   tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
  166.                   oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt);" />
  167.       </menupopup>
  168.     </menu>
  169.     <menu id="aviary-editThisImage" label="&aviary-editThisImage.label;"
  170.               class="menu-iconic"
  171.               insertafter="context-viewimage" >
  172.       <menupopup>
  173.         <menuitem id="aviary-saveImage" label="&aviary-saveImage.label;"
  174.                   class="menuitem-iconic"
  175.                   accesskey="&aviary-saveImage.accesskey;"
  176.                   insertafter="context-saveimage"
  177.                   oncommand="gAviaryMain.SaveImage(document.popupNode, false)"/>
  178.         <menuitem id="aviary-editImage" label="&aviary-editImage.label;"
  179.                   class="menuitem-iconic"
  180.                   accesskey="&aviary-editImage.accesskey;"
  181.                   insertafter="context-viewimage"
  182.                   oncommand="gAviaryMain.EditImage(document.popupNode)" />
  183.       </menupopup>
  184.     </menu>
  185.     <menu id="aviary-editThisBGImage" label="&aviary-editThisBGImage.label;"
  186.               class="menu-iconic"
  187.               insertafter="context-viewbgimage" >
  188.       <menupopup>
  189.         <menuitem id="aviary-saveBGImage" label="&aviary-saveBGImage.label;"
  190.                   class="menuitem-iconic"
  191.                   accesskey="&aviary-saveBGImage.accesskey;"
  192.                   insertafter="context-viewbgimage"
  193.                   oncommand="gAviaryMain.SaveBGImage()" />
  194.         <menuitem id="aviary-editBGImage" label="&aviary-editBGImage.label;"
  195.                   class="menuitem-iconic"
  196.                   accesskey="&aviary-editBGImage.accesskey;"
  197.                   insertafter="context-viewbgimage"
  198.                   oncommand="gAviaryMain.EditImage(null)" />
  199.       </menupopup>
  200.     </menu>
  201.   </popup>
  202.  
  203.   <popupset id="mainPopupSet">
  204.     <popup id="AviarySelectionPopup" position="overlap" flex="1"
  205.            onpopupshown="com.aviary.talon.grab.initCanvasInPopup();"
  206.            onpopuphidden="com.aviary.talon.grab.deinitCanvasInPopup();" >
  207.       <stack>
  208.         <html:canvas id="AviaryWindowCanvas" flex="1" />
  209.         <html:canvas id="AviaryPortionCanvas" flex="1" />
  210.         <hbox flex="1" pack="center" align="start">
  211.           <description id="AviaryDragReminder">
  212.             <html:br/>®ionCaptureDragReminder.label;<html:br/> 
  213.           </description>
  214.         </hbox>
  215.         <hbox id="AviaryPortionBox" hidden="true" >
  216.           <hbox class="grab-left grab-top" style="cursor: nw-resize"
  217.              adjustHorz="1" adjustVert="1" />
  218.           <hbox class="grab-top grab-horzcenter" style="cursor: n-resize"
  219.              adjustHorz="0" adjustVert="1" />
  220.           <hbox class="grab-right grab-top" style="cursor: ne-resize"
  221.              adjustHorz="-1" adjustVert="1" />
  222.           <hbox class="grab-left grab-vertcenter" style="cursor: w-resize"
  223.              adjustHorz="1" adjustVert="0" />
  224.           <hbox class="grab-right grab-vertcenter" style="cursor: e-resize"
  225.              adjustHorz="-1" adjustVert="0" />
  226.           <hbox class="grab-left grab-bottom" style="cursor: sw-resize"
  227.              adjustHorz="1" adjustVert="-1" />
  228.           <hbox class="grab-bottom grab-horzcenter" style="cursor: s-resize"
  229.              adjustHorz="0" adjustVert="-1" />
  230.           <hbox class="grab-right grab-bottom" style="cursor: se-resize"
  231.              adjustHorz="-1" adjustVert="-1" />
  232.         </hbox>
  233.         <hbox id="AviaryPortionInfoBox" align="start" hidden="true">
  234.           <hbox id="AviaryPortionDimensionBox">
  235.             <label pearl-template="REGION_CAPTURE_DIMENSIONS"/>
  236.           </hbox>
  237.           <spacer flex="1" style="min-width: 5px" />
  238.           <hbox id="AviaryPortionBtnBox" hidden="true">
  239.             <button label="®ionCaptureSaveButton.label;"
  240.                     style="margin-right: 10px;"
  241.                     oncommand="com.aviary.talon.grab.completeGrab(false)" />
  242.             <button label="®ionCaptureCancelButton.label;"
  243.                     oncommand="com.aviary.talon.grab.completeGrab(true)" />
  244.           </hbox>
  245.         </hbox>
  246.       </stack>
  247.     </popup>
  248.   </popupset>
  249.  
  250. </overlay>
  251.